class Shopping_Cart():

    def __init__(self):
        self.cart = []
        self.total_price = 0.0

    def add_item(self, item):
        self.cart.append(item.name)
        self.total_price += item.price

    def remove_item(self, **items):
        counter = 0
        for cart_item in self.cart:
            if cart_item == item:
                print "Removing " + cart_item + " from cart"
                del self.cart[counter]
                self.total_price = self.total_price - price
                return 0
            else:
                counter += 1 
        raise ValueError
            
    def get_cart(self):
        return self.cart

    def get_total_price(self):
        return self.total_price
